<template>
  <a-result status="404" title="404" sub-title="找不到指定的页面">
    <template #extra>
      <a-space>
        <a-button type="primary" @click="goBack()">返回</a-button>
        <a-button @click="goHome()">回到首页</a-button>
      </a-space>
    </template>
  </a-result>
</template>

<script setup>
import { useRouter } from "vue-router";

const router = useRouter();
const goBack = () => {
  window.history.back();
};
const goHome = () => {
  router.push({
    path: "/dashboard",
  });
};
</script>
